package com.malamute.system.action.system;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;

import com.malamute.core.action.BaseAction;
import com.malamute.core.common.SearchParamUtil;
import com.malamute.system.entity.Log;
import com.malamute.system.service.LogService;

public class LogAction extends BaseAction {
	@Autowired
	private LogService logService;
	private List logList;

	public List getLogList() {
		return logList;
	}

	public void setLogList(List logList) {
		this.logList = logList;
	}

	/**
	 * @return
	 */
	public String list() {
		DetachedCriteria criteria = DetachedCriteria.forClass(Log.class);
		SearchParamUtil.simpleSeach(criteria, searchParam);
		logService.listLogsByPage(criteria, page);
		return LIST;
	}

}
